package com.ruoyi.business.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单明细对象 jt_order_item
 * 
 * @author Alan Zhang
 * @date 2025-03-29
 */
public class JtOrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细id */
    private Long itemId;

    /** 订单ID */
    private Long orderId;

    /** 产品ID */
    private Long productId;

    /** SKU ID */
    private Long skuId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String prodName;

    /** 款式编码 */
    @Excel(name = "款式编码")
    private String styleNo;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String skuCode;

    /** 商品图片 */
    private String imageUrl;

    /** sku名称 */
    @Excel(name = "sku名称")
    private String skuName;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal salePrice;

    /** 数量 */
    @Excel(name = "数量")
    private Long prodCount;

    /** 商品总金额 */
    @Excel(name = "商品总金额")
    private BigDecimal totalAmount;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setProdName(String prodName) 
    {
        this.prodName = prodName;
    }

    public String getProdName() 
    {
        return prodName;
    }
    public void setSkuName(String skuName) 
    {
        this.skuName = skuName;
    }

    public String getSkuName() 
    {
        return skuName;
    }

    public String getStyleNo() {
        return styleNo;
    }

    public void setStyleNo(String styleNo) {
        this.styleNo = styleNo;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public void setProdCount(Long prodCount)
    {
        this.prodCount = prodCount;
    }

    public Long getProdCount()
    {
        return prodCount;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("skuId", getSkuId())
            .append("prodName", getProdName())
            .append("skuName", getSkuName())
            .append("salePrice", getSalePrice())
            .append("prodCount", getProdCount())
            .append("totalAmount", getTotalAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
